package com.kayt.cyberBar.cyber.business.entity.po;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.annotate.JsonBackReference;
import org.codehaus.jackson.annotate.JsonIgnore;


/**
 * The persistent class for the b_cyber_ware_drinks_price database table.
 * 
 */
@Entity
@Table(name="b_cyber_ware_drinks_price")
@NamedQuery(name="BCyberWareDrinksPrice.findAll", query="SELECT b FROM BCyberWareDrinksPrice b")
public class BCyberWareDrinksPrice implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String code;
	private String createTime;
	private String price;
	private String priceCode;
	private String standardCode;
	private String statusCode;
	private String mainCode;
	private String unitPriceCode;
	private String updateTime;
	
	private BCyberWareDrinksBase ware;

	public BCyberWareDrinksPrice() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	public String getPrice() {
		return this.price;
	}

	public void setPrice(String price) {
		this.price = price;
	}


	@Column(name="PRICE_CODE")
	public String getPriceCode() {
		return this.priceCode;
	}

	public void setPriceCode(String priceCode) {
		this.priceCode = priceCode;
	}


	@Column(name="STANDARD_CODE")
	public String getStandardCode() {
		return this.standardCode;
	}

	public void setStandardCode(String standardCode) {
		this.standardCode = standardCode;
	}


	@Column(name="STATUS_CODE")
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}


	@Column(name="UNIT_PRICE_CODE")
	public String getUnitPriceCode() {
		return this.unitPriceCode;
	}

	public void setUnitPriceCode(String unitPriceCode) {
		this.unitPriceCode = unitPriceCode;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	
	
	@Column(name="MAIN_CODE")
	public String getMainCode() {
		return mainCode;
	}


	public void setMainCode(String mainCode) {
		this.mainCode = mainCode;
	}


	@ManyToOne(targetEntity = BCyberWareDrinksBase.class, fetch = FetchType.LAZY)
	@JoinColumn(name="MAIN_CODE", referencedColumnName="CODE", nullable = false, insertable=false, updatable=false)
	@JsonIgnore
	public BCyberWareDrinksBase getWare() {
		return ware;
	}


	public void setWare(BCyberWareDrinksBase ware) {
		this.ware = ware;
	}
}